// 引入fs模块 
const fs = require('fs')

exports.getIndexPages = (req,res) => {
        fs.readFile(__dirname + "/../views/index.html", (err, data) => {
                if (err) {
                    res.end('404')
                } else {
                    res.end(data)
                }
            })
        }